<div class="">
<?php if(!isset($_GET['listRequest'])){ ?>
<div class="states-info">
	<if condition="getAccessMenu($accessList, 'Intesys', 'Mission', 'apply')">
        <div onClick="_openWindow('{:U('Mission/apply')}',500,'申请积分','提交',function(){ $('#applylistform').submit();return true;},'');" class="panel green-bg " style="cursor:pointer; border-radius:5px 5px 0 0; margin-bottom:0;" data-position="bottom" data-intro="如果你很积极，主动做了很多事，你很棒，可以在这里向积分管理员申请加分" >
            <div class="panel-body">
                <div class="row">
                    <div class="col-xs-4">
                        <i class="fa icon-star-o"></i>
                    </div>
                    <div class="col-xs-8 clearLeftPad">
                        <h4>申请积分</h4>
                        <span class="state-title"> 已提交<span>{$applycount}</span>次，{$applypasscount}次通过</span>
                    </div>
                </div>
            </div>
        </div>
        <form id="applylistform" action="{:U('Mission/getapply')}"></form>
        <ul style="background:#fff;" id="applylist"></ul>
        <div style="background:#fff; margin-bottom:15px; text-align:center;color:#000" id="applylistpages"></div>
        <style>
            #applylist{color:#333; padding:0; margin:0; border-radius:0 0 5px 5px;}
            #applylist li{list-style-type:none; padding-top:5px;margin-left:12px;margin-right: 12px;}
            #applylistpages ul{margin:5px 0;}
        </style>
        <script>
            $('#applylist').ajaxlist();
        </script>
    </if>

<div class="panel red-bg "  data-position="top" data-intro="奖票是个好东西，拿大奖就靠它了，经常关注自己的奖票吧">
    <div class="panel-body">
        <div class="row">
            <div class="col-xs-4">
                <i class="fa icon-money"></i>
            </div>
            <div class="col-xs-8 ">
                <h4>我的奖票</h4>
                <span class="state-title"><i class="fa icon-tags" style="font-size:14px"></i>　{$listCount}</span>
            </div>
        </div>
    </div>
</div> 
</div>
<?php } 
 	if(intval($listCount)>0){ 
	    if(!isset($_GET['listRequest'])){ 
?>
<div class="panel" data-position="top" data-intro="这里可以看到你的奖票来源">
	<div class="panel-heading">我的奖票</div>
    <div class="panel-body">
        <div class="widget-container scrollable list task-widget padded">
        	<div class="widget-content text-muted">
                <ul id="ticketListContent">
                    <?php 	}
                                foreach($list as $v){ ?>
                    <li>
                        <label href="javascript:void(0);" style="padding-left:0;padding-right:0">
                            <i class="  fa icon-angle-right"></i> {:preg_replace('/\#(.*)\#/','',$v['remark'])} <span class="pull-right text-muted">{:date('Y-m-d',$v['time'])}&nbsp;</span>
                        </label>
                    </li>
                    <?php }
                               if(!isset($_GET['listRequest'])){ ?>
                </ul>
                <div id="ticketListContentpages" class="text-center">
                    {$pages}
                </div>
                <form action="{:U('',['listRequest'=>1])}" id="ticketListContentform" method="post"></form>
            </div>
        </div>
    </div>
    <script>$('#ticketListContent').ajaxlist({append:false,nodata:'<li style="text-align:center">你还没有奖票哦</li>'});</script>
</div>
<?php }
} ?>
</div>